package com.nl.bean.input;

import java.io.Serializable;

/**
 * @author shihb
 * @date 2019/12/27 10:30
 * 交易回执的样例类
 */
public class ReceiptEvent implements Serializable {

  /**
   * 交易id
   */
  private String transactionId;
  /**
   * 支付渠道
   */
  private String channel;
  /**
   * 时间戳
   */
  private Long receiptTime;

  public ReceiptEvent() {
  }

  public ReceiptEvent(String transactionId, String channel, Long receiptTime) {
    this.transactionId = transactionId;
    this.channel = channel;
    this.receiptTime = receiptTime;
  }

  public String getTransactionId() {
    return transactionId;
  }

  public void setTransactionId(String transactionId) {
    this.transactionId = transactionId;
  }

  public String getChannel() {
    return channel;
  }

  public void setChannel(String channel) {
    this.channel = channel;
  }

  public Long getReceiptTime() {
    return receiptTime;
  }

  public void setReceiptTime(Long receiptTime) {
    this.receiptTime = receiptTime;
  }

  @Override
  public String toString() {
    return "(" + transactionId + "," + channel + "," + receiptTime + ")";
  }
}
